package com.glls.sbdemo10.mapper;

import com.glls.sbdemo10.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @date 2023/5/11
 * @desc
 */
//@Mapper
@Repository
public interface UserMapper {

    User login(@Param("name") String name, @Param("password") String password);


    @Select("select * from t_users ")
    List<User> findUsers();

}
